using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Portal.Core.DAL;

namespace Portal.Preview
{
	public partial class K14 : System.Web.UI.Page
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			long newsID = long.Parse(Request.QueryString["NewsID"]);
			using (MainDB db = new MainDB())
			{
				NewsRow news= db.NewsCollection.GetByPrimaryKey(newsID);
				lblTitle.Text = news.News_Title;
				lblInit.Text = news.News_InitialContent;
				lblAuthor.Text = news.News_Author;
				lblContent.Text = news.News_Content;
			}
		}
	}
}
